home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / foomatic / db / source / driver / hl7x0.xml < prev    next >
Encoding:
Text File  |  2009-03-27  |  6.7 KB  |  119 lines

  1. <driver id="driver/hl7x0">
  2.  <name>hl7x0</name>
  3.  <url>http://www.ghostscript.com/</url>
  4.  <supplier>Ghostscript</supplier>
  5.  <thirdpartysupplied />
  6.  <!--not "manufacturersupplied"-->
  7.  <license>GPL</license>
  8.  <freesoftware />
  9.  <!--not "nonfreesoftware"-->
  10.  <supportcontacts>
  11.   <supportcontact level="voluntary" url="http://forums.openprinting.org/list.php?24">OpenPrinting forum for Brother printers</supportcontact>
  12.   <!--not level="commercial"-->
  13.  </supportcontacts>
  14.  <shortdescription>
  15.   <en>
  16.    Driver for Brother's proprietary printer language (works also on the PCL/PS models)
  17.   </en>
  18.  </shortdescription>
  19.  <functionality>
  20.   <maxresx>2400</maxresx>
  21.   <maxresy>600</maxresy>
  22.   <monochrome />
  23.   <!--not "color"-->
  24.   <text>95</text>
  25.   <lineart>95</lineart>
  26.   <graphics>65</graphics>
  27.   <photo>35</photo>
  28.   <load></load>
  29.   <speed>100</speed>
  30.  </functionality>
  31.  <execution>
  32.   <ghostscript />
  33.   <prototype>RES=%E; gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=hl7x0%A%Z -r$RES -sOutputFile=-%C -f - | perl -e 'my $u = "%U"; my $j = "%T"; my $p = "%F"; my $r = "'$RES'"; my $e = "%G"; my $m = "%H"; my $d = "%I"; my $t = "%J"; my $pcmd = ""; if ($p =~ /^\d\d\d\d$/) {$u =~ s/\%U//; $u ||= "Unknown"; $j =~ s/\%T//; $j ||= "Unknown"; $u = chr(length($u) + 1) . $u . "\x00"; $j = chr(length($j) + 1) . $j . "\x00"; $p = chr(length($p) + 1) . $p . "\x00"; $pcmd = "\@U1$u$j$p"}; my $rcode = "\x00"; if ($r =~ /^150(|x150)$/) {$rcode = "\x0a"} elsif ($r =~ /^300(|x300)$/) {$rcode = "\x05"} elsif ($r =~ /^600(|x600)$/) {$rcode = "\x00"} elsif ($r =~ /^1200(|x1200)$/) {$rcode = "\x0f"}; my $rcmd = "\@L$rcode"; my $ecmd = ($e =~ /^[0123]$/ ? "\@E" . chr($e) : ""); my $mcmd = ($m =~ /^[012345678]$/ ? "\@J\x00" . chr($m) : ""); my $dcmd = ($d =~ /^[12]$/ ? "\@O$d" : ""); my $tcmd = ($t =~ /^[12MOo]$/ ? "\@S$t" : ""); my $did = 0; while (<>) {if (!$did) {s/\@L./$pcmd$rcmd$ecmd$mcmd$dcmd$tcmd/s && $did ++}; print}'</prototype>
  34.   <prototype_pdf>RES=%E; gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=hl7x0%A%Z -r$RES -sOutputFile=-%C -f - | perl -e 'my $u = "%U"; my $j = "%T"; my $p = "%F"; my $r = "'$RES'"; my $e = "%G"; my $m = "%H"; my $d = "%I"; my $t = "%J"; my $pcmd = ""; if ($p =~ /^\d\d\d\d$/) {$u =~ s/\%U//; $u ||= "Unknown"; $j =~ s/\%T//; $j ||= "Unknown"; $u = chr(length($u) + 1) . $u . "\x00"; $j = chr(length($j) + 1) . $j . "\x00"; $p = chr(length($p) + 1) . $p . "\x00"; $pcmd = "\@U1$u$j$p"}; my $rcode = "\x00"; if ($r =~ /^150(|x150)$/) {$rcode = "\x0a"} elsif ($r =~ /^300(|x300)$/) {$rcode = "\x05"} elsif ($r =~ /^600(|x600)$/) {$rcode = "\x00"} elsif ($r =~ /^1200(|x1200)$/) {$rcode = "\x0f"}; my $rcmd = "\@L$rcode"; my $ecmd = ($e =~ /^[0123]$/ ? "\@E" . chr($e) : ""); my $mcmd = ($m =~ /^[012345678]$/ ? "\@J\x00" . chr($m) : ""); my $dcmd = ($d =~ /^[12]$/ ? "\@O$d" : ""); my $tcmd = ($t =~ /^[12MOo]$/ ? "\@S$t" : ""); my $did = 0; while (<>) {if (!$did) {s/\@L./$pcmd$rcmd$ecmd$mcmd$dcmd$tcmd/s && $did ++}; print}'</prototype_pdf>
  35.  </execution>
  36.  <comments>
  37.   <en>
  38.  
  39.     Fortunately, Brother uses the same protocol for their host-based
  40.     printers for many years and an appropriate driver is embedded in
  41.     Ghostscript, named "hl7x0". Unfortunately the driver was not
  42.     updated for the additional options and resolutions of newer
  43.     Brother printers, so that simply using the driver does only give
  44.     very basic support for the current models (only 600 dpi, no
  45.     Duplex, no tray selection, ...).<p>
  46.  
  47.     Recently <a
  48.     href="http://sourceforge.net/projects/hbp-for-brother">the
  49.     Windows driver output of the newer models was
  50.     investigated</a> and it turned out that for the additional
  51.     options only the appropriate commands need to be inserted at the
  52.     beginning of the data stream.<p>
  53.  
  54.     On the mentioned site you find a PDF file with documentation about
  55.     the options and a filter for inserting them into the output data
  56.     stream of Ghostscript. As probably many distributions will not
  57.     include this filter, the Foomatic data and the resulting PPD files
  58.     here fo all this work without needing the filter. So you only need
  59.     the PPD from here and the Ghostscript which comes with your
  60.     distribution and you will have access to all resolutions including
  61.     HQ1200 (2400x600 dpi), economy mode, media types, duplex, tray
  62.     selection, and even password-protected printing (aka "Locked
  63.     Print" or "Secured Print").<p>
  64.  
  65.     Note that not all settings are available on all printers,
  66.     especially on older models. On some printers you will get a
  67.     shifted page if you use a low resolution. Use 600 dpi in such a
  68.     case. Please report everything on our Brother forum, so that we
  69.     can exclude unsuitable settings from the PPDs.<p>
  70.  
  71.     With the "HQ1200" resolution setting the economy mode and duplex
  72.     settings are ignored. You will always get one-sided printouts with
  73.     standard toner density.<p>
  74.  
  75.     Try this driver also with PostScript and PCL printers from Brother
  76.     (use simply a PPD file for a printer which is listed as supported
  77.     by this driver). Do you get better/faster results or more
  78.     functionality? Please report on the Brother forum.<p>
  79.  
  80.     If you have a monchrome laser from Brother which is not listed at
  81.     all on the OpenPrinting site, start trying with this driver and
  82.     report on the Brother forum.<p>
  83.  
  84.   </en>
  85.  </comments>
  86.  <printers>
  87.   <printer>
  88.    <id>printer/Brother-HL-720</id><!-- Brother HL-720 -->
  89.   </printer>
  90.   <printer>
  91.    <id>printer/Brother-HL-730</id><!-- Brother HL-730 -->
  92.   </printer>
  93.   <printer>
  94.    <id>printer/Brother-HL-820</id><!-- Brother HL-820 -->
  95.   </printer>
  96.   <printer>
  97.    <id>printer/Brother-HL-1020</id><!-- Brother HL-1020 -->
  98.   </printer>
  99.   <printer>
  100.    <id>printer/Brother-HL-1040</id><!-- Brother HL-1040 -->
  101.    <comments>
  102.     <en>Works for 300 or 600dpi; faster than PCL.</en>
  103.    </comments>
  104.   </printer>
  105.   <printer>
  106.    <id>printer/Brother-DCP-8045D</id>
  107.   </printer>
  108.   <printer>
  109.    <id>printer/Brother-MFC-8300</id><!-- Brother MFC-8300 -->
  110.   </printer>
  111.   <printer>
  112.    <id>printer/Brother-MFC-9050</id><!-- Brother MFC-9050 -->
  113.    <comments>
  114.     <en>Prints at 600dpi.</en>
  115.    </comments>
  116.   </printer>
  117.  </printers>
  118. </driver>
  119.